/*
 * Copyright 2014 NAVER Corp.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.ideal.ete.collector.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ideal.ete.collector.application.Application;
import com.ideal.ete.collector.application.CenterInfo;
import com.ideal.ete.collector.dao.ApplicationIndexDao;
import com.ideal.ete.collector.dao.CenterInfoDao;
import com.ideal.ete.collector.service.CenterInfoService;
import com.ideal.ete.collector.service.CommonService;

/**
 * @author netspider
 */
@Service
public class CenterInfoServiceImpl implements CenterInfoService {

    @Autowired
    private CenterInfoDao centerInfoDao;

    

	@Override
	public List<CenterInfo> getCenterInfosByCenter(String center) {
		return centerInfoDao.getCenterInfosByCenter(center);
	}

	@Override
	public List<CenterInfo> getAllCenterInfos() {
		return centerInfoDao.getAllCenterInfos();
	}

	@Override
	public List<CenterInfo> getCenterByApplicationName(String agentId) {
		
		return centerInfoDao.getCenterByAgentId(agentId);
	}
}
